#include "comm.hpp"

int main()
{
    cli_shm cli;
    char* start = cli.getAddr();

    sleep(8);

    char ch = 'a';

    while (ch <= 'z') 
    {
        start[ch - 'a'] = ch;
        ch++;
        start[ch - 'a'] = 0;

        sleep(1);
    }

    // key_t key = getKey();
    // // cout << "client key " << key << endl;
    //
    // int shmid = getShm(key, SHM_SIZE);
    // // cout << "client shmid " << shmid << endl;
    //
    // char* addr = attachShm(shmid);
    //
    // sleep(5);
    //
    // detachShm(addr);

    return 0;
}
